/**
 * UCP — stone/gray palette (matches Login / Register / News)
 */

.box.type-ucp,
.box.type-default:has(.ucp.ucp--stone) {
	--uc-text: #d7d0c4;
	--uc-muted: #8a8378;
	--uc-accent: #b3a26e;
	--uc-accent-soft: #d5c698;
	--uc-radius: 8px;
	--uc-border: rgba(115, 109, 98, 0.35);
	--uc-border-strong: rgba(179, 162, 110, 0.45);
	--uc-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.21), 0 1px 1px 0 rgba(0, 0, 0, 0.25);
	--uc-card: linear-gradient(165deg, rgba(51, 49, 45, 0.92) 0%, rgba(25, 23, 20, 0.96) 100%);
	--uc-panel: linear-gradient(165deg, rgba(40, 38, 34, 0.88) 0%, rgba(22, 20, 18, 0.94) 100%);

	position: relative;
	overflow: hidden;
	border: 1px solid var(--uc-border) !important;
	border-radius: var(--uc-radius) !important;
	background: var(--uc-card) !important;
	box-shadow: var(--uc-shadow) !important;
	animation: uc-fade 0.4s ease;
}

@keyframes uc-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.box.type-ucp::before,
.box.type-default:has(.ucp.ucp--stone)::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, #d5c698, var(--uc-accent));
	z-index: 2;
	pointer-events: none;
}

.box.type-ucp::after,
.box.type-ucp > [box-overlay],
.box.type-ucp > [box-overlay]::before,
.box.type-ucp > [box-overlay]::after,
.box.type-default:has(.ucp.ucp--stone)::after,
.box.type-default:has(.ucp.ucp--stone) > [box-overlay],
.box.type-default:has(.ucp.ucp--stone) > [box-overlay]::before,
.box.type-default:has(.ucp.ucp--stone) > [box-overlay]::after {
	pointer-events: none !important;
}

.box.type-ucp > .box-head,
.box.type-default:has(.ucp.ucp--stone) > .box-head {
	position: relative;
	z-index: 9;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	height: auto !important;
	min-height: var(--box-head-height, 48px);
	padding: 0.85rem 1.15rem !important;
	line-height: 1.25;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #d5c698;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
	background: linear-gradient(180deg, rgba(17, 17, 23, 0.55) 0%, rgba(17, 17, 23, 0.15) 100%) !important;
	border-bottom: 1px solid rgba(179, 162, 110, 0.18);
}

.box.type-ucp > .box-head::before,
.box.type-ucp > .box-head::after,
.box.type-default:has(.ucp.ucp--stone) > .box-head::before,
.box.type-default:has(.ucp.ucp--stone) > .box-head::after {
	content: "";
	flex: 1 1 0;
	max-width: 2.75rem;
	height: 1px;
}

.box.type-ucp > .box-head::before,
.box.type-default:has(.ucp.ucp--stone) > .box-head::before {
	background: linear-gradient(90deg, transparent, rgba(179, 162, 110, 0.55));
}

.box.type-ucp > .box-head::after,
.box.type-default:has(.ucp.ucp--stone) > .box-head::after {
	background: linear-gradient(90deg, rgba(179, 162, 110, 0.55), transparent);
}

.box.type-ucp > .box-body,
.box.type-default:has(.ucp.ucp--stone) > .box-body {
	padding: 0.85rem 1rem 1.15rem !important;
	position: relative;
	z-index: 9;
	overflow: visible !important;
}

.box.type-ucp,
.box.type-default:has(.ucp.ucp--stone) {
	overflow: visible !important;
}

.ucp.ucp--stone {
	width: 100%;
	color: var(--uc-text, #d7d0c4);
	font-family: var(--font-family-primary, Calibri, system-ui, sans-serif);
}

.ucp.ucp--stone .container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.ucp.ucp--stone .py-5,
.ucp.ucp--stone .py-lg-5 {
	padding-top: 0.35rem !important;
	padding-bottom: 0.5rem !important;
}

.ucp.ucp--stone .pe-lg-5 {
	padding-right: 1rem !important;
}

.ucp.ucp--stone .section-header {
	position: relative;
	margin: 0 0 0.85rem;
	padding: 0.15rem 0 0.55rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #d5c698;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.ucp.ucp--stone .section-header::after {
	background: linear-gradient(90deg, rgba(179, 162, 110, 0.55), transparent);
	height: 1px;
}

.ucp.ucp--stone .section-body {
	position: relative;
	margin-bottom: 1.25rem;
	padding: 0.9rem 1rem;
	border-radius: 8px;
	border: 1px solid rgba(115, 109, 98, 0.35);
	background: linear-gradient(165deg, rgba(40, 38, 34, 0.88) 0%, rgba(22, 20, 18, 0.94) 100%);
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.21);
}

.ucp.ucp--stone .user-avatar img {
	border: 2px solid rgba(179, 162, 110, 0.45);
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}

.ucp.ucp--stone .list-group {
	border: 1px solid rgba(115, 109, 98, 0.28);
	border-radius: 6px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.18);
}

.ucp.ucp--stone .list-group .list-group-item {
	color: #d7d0c4;
	background: transparent;
	border-bottom: 1px solid rgba(115, 109, 98, 0.22);
	font-size: 0.88rem;
}

.ucp.ucp--stone .list-group .list-group-item:last-child {
	border-bottom: none;
}

.ucp.ucp--stone .list-group .list-group-item:hover,
.ucp.ucp--stone .list-group .list-group-item.active {
	color: #ebe3cf;
	background: rgba(179, 162, 110, 0.14);
}

.ucp.ucp--stone .list-group .list-group-item.active {
	color: #d5c698;
	border-left: 3px solid #b3a26e;
}

.ucp.ucp--stone .user-table,
.ucp.ucp--stone .nice_table {
	width: 100%;
	color: #d7d0c4;
}

.ucp.ucp--stone .user-table td,
.ucp.ucp--stone .nice_table td,
.ucp.ucp--stone .nice_table th {
	color: #d7d0c4;
	border-color: rgba(115, 109, 98, 0.22);
	vertical-align: middle;
}

.ucp.ucp--stone .nice_table thead th {
	color: #d5c698;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.82rem;
}

.ucp.ucp--stone .user-table a,
.ucp.ucp--stone .nice_table a,
.ucp.ucp--stone a {
	color: #d5c698;
	text-decoration: none;
}

.ucp.ucp--stone .user-table a:hover,
.ucp.ucp--stone .nice_table a:hover,
.ucp.ucp--stone a:hover {
	color: #ebe3cf;
}

.ucp.ucp--stone .user-table-icon {
	color: #d5c698;
}

.ucp.ucp--stone label,
.ucp.ucp--stone .col-form-label {
	color: #fff !important;
	text-shadow: none;
}

.ucp.ucp--stone .form-control,
.ucp.ucp--stone .form-select,
.ucp.ucp--stone input[type="text"],
.ucp.ucp--stone input[type="password"],
.ucp.ucp--stone input[type="email"],
.ucp.ucp--stone select {
	height: 2.45rem;
	border-radius: 6px !important;
	border: 1px solid rgba(115, 109, 98, 0.35) !important;
	background: rgba(0, 0, 0, 0.35) !important;
	background-image: none !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.ucp.ucp--stone .form-control::placeholder,
.ucp.ucp--stone input::placeholder,
.ucp.ucp--stone input::-webkit-input-placeholder {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	opacity: 0.75 !important;
}

.ucp.ucp--stone .form-control:focus,
.ucp.ucp--stone .form-select:focus,
.ucp.ucp--stone input:focus,
.ucp.ucp--stone select:focus {
	border-color: rgba(179, 162, 110, 0.45) !important;
	box-shadow: 0 0 0 0.15rem rgba(179, 162, 110, 0.15) !important;
}

.ucp.ucp--stone .nice_button,
.ucp.ucp--stone input[type="submit"].nice_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	height: 2.45rem;
	padding: 0 1.25rem;
	border-radius: 6px !important;
	border: 1px solid rgba(179, 162, 110, 0.45) !important;
	background: linear-gradient(145deg, #d5c698, #b3a26e) !important;
	color: #1f1d18 !important;
	font-size: 0.72rem !important;
	font-weight: 750 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: none !important;
	text-shadow: none !important;
}

.ucp.ucp--stone .nice_button:hover,
.ucp.ucp--stone input[type="submit"].nice_button:hover {
	filter: brightness(1.08);
	color: #1f1d18 !important;
}

.ucp.ucp--stone hr {
	border-color: rgba(115, 109, 98, 0.35);
	opacity: 1;
}

.ucp.ucp--stone .avatars_name {
	color: #d5c698;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ucp.ucp--stone .my_avatar {
	border: 1px solid rgba(115, 109, 98, 0.35);
	border-radius: 8px;
}

.ucp.ucp--stone .my_avatar.avatar_current {
	border-color: rgba(179, 162, 110, 0.7);
	box-shadow: 0 0 0 2px rgba(179, 162, 110, 0.35);
}

@media (max-width: 991px) {
	.ucp.ucp--stone .pe-lg-5 {
		padding-right: 0 !important;
	}
}
